<h2 class="title">{%if $act eq 'add'%}添加{%else%}修改{%/if%}设备调拨</h2>
<form action="index.php?c=zy_mc_allocation&m={%$act%}&post=1" method=post name=frm enctype="multipart/form-data" onSubmit="return Validator.Validate(this,3)">
<table class="tb_term" width="100%">
<tr>
	<td class="tr_td_width01 alignright">调拨单据编号</td>
	<td class="tr_td_width03"><input type=text class="input_edit_stand txt-normal" name="allocation_no" value='{%if $allocation_no%}{%$allocation_no%}{%/if%}'   dataType="Require" msg=""></td>	
	<td class="tr_td_width01 alignright">设备调拨出处</td>
	<td>
		<select name="allocation_from"  class="select_edit02 txt-normal" dataType="Require"  msg="" {% if $act eq 'edit' %}readonly{%/if%}>
			<option value="">-- 请选择 --</option>
			{%foreach from=$project_arr item=list%}
			<option value="{%$list%}" {%if $allocation_from==$list%}selected{%/if%}>{%$list%}</option>
			{%/foreach%}
		</select>
	</td>
</tr>
<tr>
	<td class="alignright">设备调拨日期</td>
	<td>
		<input type=text class="input_date_edit txt-normal" name="allocation_time" id="allocation_time" maxlength="12" value='{%$allocation_time|date_format:"%Y-%m-%d"%}' dataType="Require" msg="" readonly>
		<script>
			Calendar.setup({
				inputField     :    "allocation_time",   // id of the input field
				ifFormat       :    "%Y-%m-%d",       // format of the input field
				showsTime      :    false,
				timeFormat     :    "24"
			});
		</script>
	</td>
	<td class="alignright">设备调拨去向</td>
	<td>
		<select name="allocation_to"  class="select_edit02 txt-normal" dataType="Require"  msg="" {% if $act eq 'edit' %}readonly{%/if%}>
			<option value="">-- 请选择 --</option>
			{%foreach from=$project_arr item=list%}
			<option value="{%$list%}" {%if $allocation_to==$list%}selected{%/if%}>{%$list%}</option>
			{%/foreach%}
		</select>
	</td>
</tr>
<tr>	
	<td class="alignright">调拨经办人员</td>
	<td colspan="3">
		<select name="admin_user_id" class="select_edit txt-normal">
			{%html_options options=$admin_info selected=$admin_user_id%}
		</select>
	</td>
</tr>
<!--
<tr>
	<td class="alignright">调补附件</td>
	<td colspan=3><input type=file class="txt-normal" name="file_path" size=50 value='{%$file_path%}'></td>
</tr>
-->
<tr>
	<td class="alignright">调拨单据备注</td>
	<td colspan=3><textarea cols="70" rows="3" class="textarea_edit txt-normal" id="allocation_info" name="allocation_info" >{%$allocation_info%}</textarea></td>
</tr>
</table>
<p class="btn_right">
	<input type=hidden name='allocation_id' id='allocation_id' value='{%$allocation_id%}'>
	<button type="submit" class="b-default" hidefocus="true"><span><em>{%if $act eq 'add'%}提交{%else%}更新{%/if%}</em></span></button>
	<button type="button" class="b-default" hidefocus="true" onclick="javascript:location.href='index.php?c=zy_mc_allocation'"><span><em>返回</em></span></button>
</p>
</form>